package com.top10.entity.vo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.top10.entity.Goods;
import com.top10.entity.Shop;

import java.util.Date;
import java.util.List;

/**
 * @author sny
 * @Package com.top10.entity.vo
 * @date 2018/9/30
 */
public class GoodsDetailedVo {
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    /**
     * 主键,全局唯一
     */
    private String uuid;
    /**
     * 商品uuid
     */
    @TableField("goods_uuid")
    private String goodsUuid;
    /**
     * 商品属性
     */
    private String attributes;
    /**
     * 商品价格
     */
    private Double price;
    /**
     * 商品库存
     */
    private Integer stock;
    /**
     * 已售数量
     */
    @TableField("sold_quantity")
    private Integer soldQuantity;
    /**
     * 商品图片url
     */
    private String picture;
    /**
     * 是否删除
     */
    private Boolean isdeleted;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 创建者
     */
    private String creator;
    /**
     * 更新时间
     */
    private Date updatetime;
    private String sku;
    /**
     * 修改者
     */
    private String mender;

   // private Shop shopname;

    private Goods goods;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getGoodsUuid() {
        return goodsUuid;
    }

    public void setGoodsUuid(String goodsUuid) {
        this.goodsUuid = goodsUuid;
    }

    public String getAttributes() {
        return attributes;
    }

    public void setAttributes(String attributes) {
        this.attributes = attributes;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getSoldQuantity() {
        return soldQuantity;
    }

    public void setSoldQuantity(Integer soldQuantity) {
        this.soldQuantity = soldQuantity;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Boolean getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Boolean isdeleted) {
        this.isdeleted = isdeleted;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getMender() {
        return mender;
    }

    public void setMender(String mender) {
        this.mender = mender;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }
}
